{"version":3,"sources":["dynamic_cards_form.js"],"names":["BX","namespace","Landing","UI","Form","DynamicCardsForm","data","BaseForm","apply","this","arguments","type","code","presets","sync","forms","id","replace","Utils","random","onSourceChangeHandler","onSourceChange","dynamicParams","settingFieldsSelectors","sourceField","createSourceField","pagesField","createPagesField","addField","detailPageGroup","createFieldsGroup","createLinkField","addCard","prototype","constructor","__proto__","getSources","Main","getInstance","options","sources","getSourceItems","map","item","name","value","url","filter","sort","items","sortItem","settings","sourceItems","source","isPlainObject","Field","SourceField","selector","title","Loc","getMessage","onValueChange","field","getValue","find","setTimeout","isDetailPageAllowed","style","layout","bind","Pages","pagesCount","content","text","href","detailPage","Link","textOnly","disableCustomURL","disableBlocks","disallowType","allowedTypes","LinkURL","TYPE_PAGE","detailPageMode","fields","siteId","site_id","landingId","=TYPE","params","createUseSefField","Checkbox","multiple","checked","Card","DynamicFieldsGroup","isReference","isArray","some","references","reference","serialize","reduce","acc","includes","hasClass","stubs","src","alt","isString"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,sBAEbD,GAAGE,QAAQC,GAAGC,KAAKC,iBAAmB,SAASC,GAE9CN,GAAGE,QAAQC,GAAGC,KAAKG,SAASC,MAAMC,KAAMC,WACxCD,KAAKE,KAAOL,EAAKK,KACjBF,KAAKG,KAAON,EAAKM,KACjBH,KAAKI,QAAUP,EAAKO,QACpBJ,KAAKK,KAAOR,EAAKQ,KACjBL,KAAKM,MAAQT,EAAKS,MAClBN,KAAKO,GAAKP,KAAKG,KAAKK,QAAQ,IAAK,IAAM,IAAMjB,GAAGE,QAAQgB,MAAMC,SAC9DV,KAAKW,sBAAwBd,EAAKe,eAClCZ,KAAKa,cAAgBhB,EAAKgB,cAC1Bb,KAAKc,wBACJ,SACA,aACA,aACA,UAGDd,KAAKe,YAAcf,KAAKgB,oBACxBhB,KAAKiB,WAAajB,KAAKkB,mBAEvBlB,KAAKmB,SAASnB,KAAKe,aACnBf,KAAKmB,SAASnB,KAAKiB,YAEnBjB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